#include "Shape.h"
//---------------------------------------------------------------------------------------------//
Shape::Shape()
{
	m_pVertices = new D3DVertex[4];
	
	m_pVertices[0].SetVertex(-50,50,0,0xff0000ff);
	m_pVertices[1].SetVertex(50,50,0,0xff0000ff);
	m_pVertices[2].SetVertex(-50,-50,0,0xff0000ff);
	m_pVertices[3].SetVertex(50,-50,0,0xff0000ff);


	m_rotation = 0;
}
//---------------------------------------------------------------------------------------------//
void Shape::Draw(Graphics& g)
{
	g.SetTexture(NULL);
	m_rotation += 0.1f;
	g.SetMatrixMode(WORLD_MATRIX);
	g.LoadIdentity();
	g.Translate(-300,0,0);
	//g.Scale(2,2);
	g.Rotate(0,0,m_rotation);
	//g.DrawElements(4, m_pVertices, TRIANGLESTRIP );

}